package com.saiyaemon.blog.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.saiyaemon.blog.mapper.CategoryMapper;
import com.saiyaemon.blog.pojo.Category;
import com.saiyaemon.blog.service.CategoryService;

/** 
 * @author  作者 SaiyaEmon
 * @date 创建时间：2017年12月4日 下午1:07:56 
 */
@Service("categoryService")
@Transactional
public class CategoryServiceImpl implements CategoryService {
	
	@Autowired
	CategoryMapper categoryMapper;

	@Override
	public List<Category> selectAll() {
		return categoryMapper.select(new Category());
	}

	@Override
	public Category selectOne(Category category) {
		return categoryMapper.selectOne(category);
	}

	@Override
	public List<Category> select(Category category) {
		return categoryMapper.select(category);
	}

}
